<form name="form" action="{$modal.href}" method="post" class="nyroModal">
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$modal.label}
    <div id="modalContent">
		<table class="listTable">
			<tr>
				<td>{t}Menu title{/t}</td>
				<td>: <input name="form[title]" type="text" {if isset($blockParams.title)}value="{$blockParams.title}"{/if} />
				</td>
			</tr>
			<tr>
				<td>{t}Menu to display{/t}</td>
				<td>: 
					<select name="form[menu]">
						{foreach from=$menus item=menu}
							{if isset($blockParams.menu)}
								{if $blockParams.menu == $menu->getUniqueId()}
									<option value="{$menu->getUniqueId()}" selected="selected">{if $menu->getModel()=='modules_website/website'}{t}Website root{/t}{else}{$menu->getLabel()}{/if}</option>
								{else}
									<option value="{$menu->getUniqueId()}">{if $menu->getModel()=='modules_website/website'}{t}Website root{/t}{else}{$menu->getLabel()}{/if}</option>
								{/if}
							{else}
								<option value="{$menu->getUniqueId()}">{if $menu->getModel()=='modules_website/website'}{t}Website root{/t}{else}{$menu->getLabel()}{/if}</option>
							{/if}
						{/foreach}
					</select>				
				</td>
			</tr>
			<tr>
				<td>{t}Max depth{/t}</td>
				<td>:
					<select name="form[depth]">
                        <option value="0">{t}Unlimited{/t}</option>
                        {section name=depth start=1 loop=6 step=1}
                        <option value="{$smarty.section.depth.index}" {if isset($blockParams.depth) && intval($blockParams.depth) == $smarty.section.depth.index}selected="selected"{/if}>{$smarty.section.depth.index}</option>
                        {/section}
					</select>
				</td>
			</tr>
			<tr>
				<td>{t}Add active class to parent{/t}</td>
				<td>:
					<select name="form[activeParent]">
                        <option value="0">{t}No{/t}</option>
                        <option value="1" {if isset($blockParams.activeParent) && $blockParams.activeParent == '1'}selected="selected"{/if}>{t}Yes{/t}</option>
					</select>
				</td>
			</tr>
		</table>
    </div>
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html"}
</form>
